package com.orangelife.service.propFeeBuilding;

import java.util.List;
import java.util.Map;

import com.orangelife.exception.AppBizException;
import com.orangelife.service.propFeeBuilding.model.PropFeeBuildingDto;

/*****************************************************************
 * Copyright(C) ORANGELIFE Corporation 2015. All Rights Reserved.
 *****************************************************************/
/*
 * ============================================================== 功能名
 * PropFeeBuilding类的 service层的增删改查
 * 
 * @author @author
 * 
 * @version 1.1.0
 * 
 * @date 2016-06-18 12:25:21
 * ==============================================================
 */
public interface IPropFeeBuildingService {

	/**
	 * 用途 添加propFeeBuilding（橙子生活）
	 * 
	 * @author
	 * @date创建时间 2016-06-18 12:25:21
	 * @param propFeeBuilding
	 * @return
	 * @throws AppBizException
	 */
	public int addPropFeeBuilding(PropFeeBuildingDto propFeeBuilding)
			throws AppBizException;

	public int addPropFeeBuildings(List<PropFeeBuildingDto> propFeeBuilding)
			throws AppBizException;

	/**
	 * 用途 修改propFeeBuilding（橙子生活）
	 * 
	 * @author
	 * @date创建时间 2016-06-18 12:25:21
	 * @param propFeeBuilding
	 * @return
	 * @throws AppBizException
	 */

	public int editPropFeeBuilding(PropFeeBuildingDto propFeeBuilding)
			throws AppBizException;

	/**
	 * 用途 单个查询 （橙子生活）
	 * 
	 * @author
	 * @date创建时间 2016-06-18 12:25:21
	 * @param propFeeBuildingID
	 * @return
	 * @throws AppBizException
	 */

	public PropFeeBuildingDto findPropFeeBuildingByID(String propFeeBuildingID)
			throws AppBizException;

	/**
	 * 用途 逻辑删除（橙子生活）
	 * 
	 * @author
	 * @date创建时间 2016-06-18 12:25:21
	 * @param propFeeBuildingID
	 * @return
	 * @throws AppBizException
	 */
	public int deletePropFeeBuildingByLogic(String propFeeBuildingID)
			throws AppBizException;

	/**
	 * 用途 查询列表 （橙子生活）
	 * 
	 * @author
	 * @date 创建时间 2016-06-18 12:25:21
	 * @param search
	 *            搜索内容
	 * @param tsCreate
	 *            创建时间
	 * @param pageNo
	 *            页码
	 * @param pageSize
	 *            页面大小
	 * @return
	 * @throws AppBizExceptionception
	 */
	public List<Map<String, Object>> findPropFeeBuildingByPage(String tsCreate,
			String search, int pageNo, int pageSize) throws AppBizException;

	/**
	 * 用途 查询列表（返回对对象）（橙子生活）
	 * 
	 * @author
	 * @date 创建时间 2016-06-18 12:25:21
	 * @param servletRequest
	 * @param search
	 *            搜索内容
	 * @param tsCreate
	 *            创建时间
	 * @param pageNo
	 *            页码
	 * @param pageSize
	 *            页面大小
	 * @return
	 * @throws AppBizException
	 */
	public List<PropFeeBuildingDto> getPropFeeBuildingByPage(String tsCreate,
			String search, int pageNo, int pageSize) throws AppBizException;

	/**
	 * 用途 根据一张表内的所有ID查询propFeeBuilding（橙子生活）(返回Map<String, Object>)
	 * 
	 * @author
	 * @date 创建时间 2016-06-18 12:25:21
	 * @param buildingID
	 *            (非必填字段)
	 * 
	 * @param commID
	 *            (非必填字段)
	 * 
	 * @param status
	 *            (非必填字段)
	 * 
	 * @param buildingType
	 *            (非必填字段)
	 * @return
	 * @throws AppBizException
	 */

	public List<Map<String, Object>> selectPropFeeBuildingByRelevantID(
			String buildingID, String commID, String status, String buildingType)
			throws AppBizException;

	/**
	 * 用途 根据一张表内的所有ID查询propFeeBuilding（橙子生活）(返回对象)
	 * 
	 * @author
	 * @date 创建时间 2016-06-18 12:25:21
	 * @param buildingID
	 *            (非必填字段)
	 * 
	 * @param commID
	 *            (非必填字段)
	 * 
	 * @param status
	 *            (非必填字段)
	 * 
	 * @param buildingType
	 *            (非必填字段)
	 * @return
	 * @throws AppBizException
	 */

	public List<PropFeeBuildingDto> findPropFeeBuildingByRelevantID(
			String buildingID, String commID, String status,
			String buildingType, String buildingName) throws AppBizException;

	/**
	 * 用途 批量查询propFeeBuilding（橙子生活）(返回对象)
	 * 
	 * @author
	 * @date 创建时间 2016-06-18 12:25:21
	 * 
	 * @return
	 * @throws AppBizException
	 */

	public List<PropFeeBuildingDto> bauthfindPropFeeBuilding(
			List<String> propFeeBuildingIDs) throws AppBizException;

	/**
	 * 用途 批量查询propFeeBuilding（橙子生活）(返回Map)
	 * 
	 * @author
	 * @date 创建时间 2016-06-18 12:25:21
	 * 
	 * @return
	 * @throws AppBizException
	 */

	public List<Map<String, Object>> bauthfindPropFeeBuildingByMap(
			Map<String, Object> propFeeBuilding) throws AppBizException;

	/***
	 * 删除楼栋
	 * @param buildingIDs
	 * @return
	 * @throws AppBizException
	 */
	public int bauthDeletePropFeeBuilding(List<String> buildingIDs)
			throws AppBizException;

}